﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace Xyz.Web.Reservation.Models
{
    public class CardPaymentModel
    {
        public int CardPaymentId { get; set; }
        public int BookingId { get; set; }

        [DisplayName("Payment Method : *")]
        [Required(ErrorMessage = "Please select payment method.")]
        public string PaymentMethodCode { get; set; }

        [DisplayName("Card Number : *")]
        [Required(ErrorMessage = "Please enter card number.")]
        public string CardNo { get; set; }

        [DisplayName("Name on Card : *")]
        [Required(ErrorMessage = "Please enter name.")]
        public string NameOnCard { get; set; }

        [Required(ErrorMessage = "Please select card type.")]
        [DisplayName("Card Type : *")]
        public string CardTypeCode { get; set; }

        [Required(ErrorMessage = "Please enter card expiry.")]
        [DisplayName("Expiry Date : *")]
        public DateTime CardExpiryDate { get; set; }

        public decimal PaidAmount { get; set; }

        //Billing address

        [Required(ErrorMessage = "Please enter address.")]
        [DisplayName("Address Line 1 : *")]
        public string AddressLine1 { get; set; }

        [DisplayName("Address Line 2 : ")]
        public string AddressLine2 { get; set; }

        [DisplayName("Address Line 3 : ")]
        public string AddressLine3 { get; set; }

        [Required(ErrorMessage = "Please enter country.")]
        public string Country { get; set; }

        [Required(ErrorMessage = "Please enter city.")]
        public string City { get; set; }

        [Required(ErrorMessage = "Please enter postal code.")]
        [DisplayName("Zip/Postal Code : ")]
        public string PostalCode { get; set; }
    }
}